package com.xiguaji.tiktok.task.blogger;

import com.xiguaji.boot.data.rdb.aggregate.Aggregate;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BloggerLog extends Aggregate {
    private long currentBloggerId;
    private int logType;
    private String extValue;

    public enum BloggerLogType {

        FETCH_NEW_FOLLOWING(10001),
        FETCH_FOLLOWING_LOOP(10002),
        FETCH_NEW_FOLLOWER(10003),
        FETCH_FOLLOWER_LOOP(10004),
        FETCH_AWEME(10005),
        FETCH_AWEME_LOOP(10006);

        BloggerLogType(int value) {
            this.value = value;
        }

        private int value;

        public int getValue() {
            return value;
        }
    }
}
